from django.conf.urls.defaults import patterns, url

from .views import (index, documents_in_project, requirements_in_document, requirement)

urlpatterns = patterns('',
                       url(r'^$', index),
                       url(r'^project/(?P<project_id>\d+)/$', documents_in_project),
                       url(r'^project/(?P<project_id>\d+)/(?P<document_id>\d+)/$', requirements_in_document),
                       url(r'^project/(?P<project_id>\d+)/(?P<document_id>\d+)/(?P<requirement_id>\d+)/$', requirement),
                       )
